package com.shelpe.services.sinbad.repository.jpa;

import java.util.Date;
import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.sinbad.entity.jpa.Adgroup;

public interface AdgroupRepository extends PagingAndSortingRepository<Adgroup, Long> {

	List<Adgroup> findByCampaignID(Long campaignID);

	List<Adgroup> findByCampaignIDIn(List<Long> campaignIDs);

	List<Adgroup> findByAutoIDIn(List<Long> autoIDs);
	
	List<Adgroup> findByCreateTimeAfter(Date createTime);

}